/**
 * Alipay.com Inc.
 * Copyright (c) 2004-2015 All Rights Reserved.
 */
package com.scrcu.cloud.wechat.home.endpoint.common.constant;

import javax.ws.rs.core.MediaType;

/**
 * @auther: 刘思良
 * @date: 2024/3/12 15:07
 * @description: rest常量
 * @version: 1.0.0
 */
public class RestConstants {

    /**
     * response encoding
     */
    private static final String DEFAULT_CHARSET = "UTF-8";

    /**
     * json
     */
    public static final String DEFAULT_CONTENT_TYPE = MediaType.APPLICATION_JSON + ";" + MediaType.CHARSET_PARAMETER + "=" + DEFAULT_CHARSET;

    /**
     * 文本
     */
    public static final String CONTENT_TYPE_TEXT = MediaType.TEXT_PLAIN + ";" + MediaType.CHARSET_PARAMETER + "=" + DEFAULT_CHARSET;

    /**
     * xml
     */
    public static final String CONTENT_TYPE_XML = MediaType.TEXT_XML + ";" + MediaType.CHARSET_PARAMETER + "=" + DEFAULT_CHARSET;

    /**
     * html
     */
    public static final String CONTENT_TYPE_HTML = MediaType.TEXT_HTML + ";" + MediaType.CHARSET_PARAMETER + "=" + DEFAULT_CHARSET;


    /**
     * form
     */
    public static final String CONTENT_TYPE_FORM = MediaType.APPLICATION_FORM_URLENCODED + ";" + MediaType.CHARSET_PARAMETER + "=" + DEFAULT_CHARSET;
    /**
     * multipart
     */
    public static final String CONTENT_TYPE_MULTIPART = MediaType.MULTIPART_FORM_DATA + ";" + MediaType.CHARSET_PARAMETER + "=" + DEFAULT_CHARSET;
}
